// Author: wsfuyibing <682805@qq.com>
// Date: 2025-05-28

package shop

import (
	"gitee.com/go-wares/framework-iris/framework/src/logics"
	"github.com/kataras/iris/v12"
	"server/app/http/logics/master/shop/distance"
	"server/app/http/logics/master/shop/switcher"
)

// Controller
// 钓场商店.
//
// @Middleware("authorizer")
// @Middleware("master")
type Controller struct{}

// PostDistance
// 设置商店范围.
func (o *Controller) PostDistance(i iris.Context) {
	logics.Do(i, distance.New)
}

// PostSwitcher
// 商店开关.
func (o *Controller) PostSwitcher(i iris.Context) {
	logics.Do(i, switcher.New)
}
